import request from '@/utils/request'

// 查询盘点详细单列表
export function listDetails(query) {
  return request({
    url: '/warehouse/details/list',
    method: 'get',
    params: query
  })
}

// 查询盘点详细单详细
export function getDetails(detailsId) {
  return request({
    url: '/warehouse/details/' + detailsId,
    method: 'get'
  })
}

// 新增盘点详细单
export function addDetails(data) {
  return request({
    url: '/warehouse/details',
    method: 'post',
    data: data
  })
}

// 修改盘点详细单
export function updateDetails(data) {
  return request({
    url: '/warehouse/details?code='+data,
    method: 'get',
  })
}

